package com.kaluli.project.service;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.kaluli.project.domain.entity.AbroadVO;
import com.kaluli.project.domain.entity.KllMainOrderDetail;
import com.kaluli.project.domain.entity.KllOrderLogistics;
import com.kaluli.project.domain.entity.KllOrderVirtual;
import com.kaluli.project.domain.repository.KllOrderLogisticsRepository;
import com.kaluli.project.domain.repository.KllOrderVirtualRepository;
import com.kaluli.project.utils.DateUtil;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Service
@Configuration
@Transactional
@PropertySource({"classpath:thridsystem.properties"})
public class KllOrderVirtualService {
	
	static Logger log = Logger.getLogger(KllOrderVirtualService.class.getName());
	
	@Autowired
	private Environment env;
	
	@Autowired
	private KllOrderVirtualRepository kllOrderVirtualRepository;
	
	


		public List<KllOrderVirtual> findOrderVirtual(String orderNumber){

		return kllOrderVirtualRepository.findByOrderNumber(orderNumber);

	}
	
	
}
